Page({
  data: {
    wastepaper: 0,
    listData:[
      {"code":"01","recyclable":"书心","unrecyclable":"纸杯"},
      {"code":"02","recyclable":"纸板","unrecyclable":"相纸"},
      {"code":"03","recyclable":"旧报纸","unrecyclable":"卫生纸"},
      {"code":"04","recyclable":"纸板箱","unrecyclable":"铝箔纸"},
      {"code":"05","recyclable":"牛皮纸","unrecyclable":"明信片"},
      {"code":"06","recyclable":"杂志书籍","unrecyclable":"复写纸"},
      {"code":"07","recyclable":"混合废纸","unrecyclable":"食品包装纸"}
    ]
  },
  onShow() {
    wx.cloud.database().collection('price').get({
      success: res =>{
        let price = res.data[0]
        this.setData({
          wastepaper: price.wastepaper
        })
      },
    })
  }
})